package cn.lee.demo.drools.model;

import java.util.HashSet;

/**
 * Created by IntelliJ IDEA.
 * User: Lee
 * Date: 12-2-10
 * Time: 上午10:55
 */
public enum Test {

    FIRST{
        public int  code() {
           return 1001;
        }
        @Override
        String desc() {
            return "aaaa";
        }

    }, SECOND{
        @Override
        int code() {
            return 1002;
        }

        @Override
        String desc() {
            return "rrr";  //To change body of implemented methods use File | Settings | File Templates.
        }
    };

    

    abstract int code();
    abstract String desc();

    public static void main(String[] args) {
        System.out.println(Test.FIRST.code());
        System.out.println(Test.FIRST.desc());
        System.out.println(Test.SECOND);
    }
}
